#ifndef PARSER_H_
#define PARSER_H_

#include <iostream>
#include <string>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

const std::string REFS="D   refs:";
const std::string MISS="D1  misses:";
const std::string RATE="D1  miss rate:";
const std::string END="(";

class Parser {
public:
	void parsear();
	int getRefsD1();
	int getmissD1();
	int getmissRateD1();
private:
	int refsD1;
	int missD1;
	int missRateD1;
	double parser(std::string input, std::string to_find);
};

#endif /* PARSER_H_ */
